package com.regent.central.bill.repository.mrp.dto.delivery;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 钟宝林
 * @date 2018-06-29 15:32
 **/
public class BillMaterialDeliveryUndoSkuDTO implements Serializable {
    private static final long serialVersionUID = -2749335143618280068L;

    private String facMissionId;
    private String materialSkuId;
    private BigDecimal quantity;

    public String getFacMissionId() {
        return facMissionId;
    }

    public void setFacMissionId(String facMissionId) {
        this.facMissionId = facMissionId;
    }

    public String getMaterialSkuId() {
        return materialSkuId;
    }

    public void setMaterialSkuId(String materialSkuId) {
        this.materialSkuId = materialSkuId;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BillMaterialDeliveryUndoSkuDTO that = (BillMaterialDeliveryUndoSkuDTO) o;

        if (facMissionId != null ? !facMissionId.equals(that.facMissionId) : that.facMissionId != null) return false;
        return materialSkuId != null ? materialSkuId.equals(that.materialSkuId) : that.materialSkuId == null;
    }

    @Override
    public int hashCode() {
        int result = facMissionId != null ? facMissionId.hashCode() : 0;
        result = 31 * result + (materialSkuId != null ? materialSkuId.hashCode() : 0);
        return result;
    }
}
